package cn.edu.scau.cmi.dengzhengyu.abstractFactoryModel;

import cn.edu.scau.cmi.dengzhengyu.abstractFactoryModel.domainAbstractClass.*;
public abstract class AbstractFactory {
	
	public static AbstractFactory getFactory(String brand) {
		switch (brand.toLowerCase()) {
		case "wens":
			return new WensFactory();
		case "aonong":
			return new AonongFactory();
		case "tianbang":
			return new TianbangFactory();
		}
		return null;

	}
	
	
	public abstract MeatProduct createrPork();
	public abstract MeatProduct createrBeef();
	public abstract MeatProduct createrChicken();
	


}
